<?php

class clientsMenuWidgetComponents extends myComponents
{
  public function executeRender()
  {
     $this->node = $this->getRoute()->getObject();
     
     if ($this->node->getParameter() == 'clients') {
         $this->elements = $this->node->getStructureChilds();
     } else {
         $parent = $this->node->getParent();
         $this->elements = $parent->getStructureChilds();
     }     
  }
}